package com.kt.service.impl;

import com.kt.dataobject.ProductCategory;
import com.kt.repository.ProductCategoryRepository;
import com.kt.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by lenovo on 2019/1/11.
 */
@Service
public class CategoryServiceImpl implements CategoryService {
   @Autowired
   private ProductCategoryRepository productCategoryRepository;
    @Override
    public List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList) {
        return productCategoryRepository.findByCategoryTypeIn(categoryTypeList);
    }
}
